<%@ page import="com.bookshop.service.BookService" %>
<%@ page import="com.bookshop.service.impl.BookServiceImpl" %>
<%@ page import="com.bookshop.entity.Book" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/5/24
  Time: 10:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    //根据图书编号查询图书对象
    Integer id=Integer.valueOf(request.getParameter("id"));
    //将查询到的图书对象存储到request
    BookService bookService=new BookServiceImpl();
    Book book = bookService.findById(id);
    request.setAttribute("book",book);
    //转发
    request.getRequestDispatcher("details.jsp").forward(request,response);

%>
